home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_gnats.idb / usr / freeware / lib / gnats / contrib / sql / bcust.ace.z / bcust.ace
Encoding:
Text File  |  1999-04-16  |  1.3 KB  |  70 lines

  1. database engdb end
  2.  
  3. {xxx customize here xxx}
  4. define 
  5.   param [1] cust_id char(16)
  6. end
  7.  
  8. output
  9.   page length 66
  10.   top margin 5
  11.   bottom margin 3
  12.   left margin 0
  13.  
  14. {xxx customize here xxx}
  15. {report to "/s1/users/smlieu/chron/bugs/reports/cust.infx"}
  16.  
  17. end
  18.  
  19. select
  20. {xxx customize here xxx}
  21.     arrival,
  22.  
  23.     gnatsid,
  24.     category,
  25.     synopsis,
  26.     severity,
  27.     gnatsstate,
  28.     gnatsclass,
  29.         sevnum,
  30.         sevstr,
  31.         statenum,
  32.         statestr
  33. from gnats, statecode, severitycode
  34.  
  35. {xxx customize here xxx}
  36. where 
  37.       customer = $cust_id and
  38.       severity=sevnum and
  39.       gnatsstate=statenum
  40.       order by category, gnatsstate, severity
  41. end
  42.  
  43. format
  44.   page header
  45.  
  46. {xxx customize here xxx}
  47.     print column 1, "*** GNATS SUMMARY for ", cust_id clipped, " as of ", date, " ***",
  48.           column 100, "Page", pageno
  49.     skip 2 lines
  50.  
  51.     print 
  52.           column  3, "Date", 
  53.           column 13, "PR #", 
  54.           column 25, "Program",
  55.           column 37, "State",
  56.           column 49, "Severity",
  57.           column 63, "Synopsis"
  58.     skip 1 line
  59.  
  60. on every row 
  61.   print 
  62.         column  3, date(arrival) using "yy-mm-dd",
  63.         column 13, gnatsid clipped,
  64.         column 25, category clipped,
  65.         column 37, statestr clipped,
  66.         column 49, sevstr clipped, 
  67.         column 63, synopsis
  68.  
  69. end
  70.